package model.contents;

import org.json.simple.JSONObject;

public class TextContent extends Content {
	private static int nextId = Integer.MIN_VALUE;
	private String text;
	private JSONObject format;
	public TextContent(String text) {
		super(nextId++, ContentType.TEXT, "", false, 0);
		this.text = text;
	}

	public boolean isValidContent() {
		return true;
	}
	
	public String getText() {
		return this.text;
	}
	
	public void setFormat(JSONObject format) {
		this.format = format;
	}
	public JSONObject getFormat() {
		return this.format;
	}
}